package co.fitstart.entity.principal;

public enum SpecialTags {
    
    BOXING("boxing", "拳击", "2"),
    
    STRETCH("stretch", "拉伸", "4"),
    
    FUNCTION("function", "功能训练", "6"),
    
    SHAPE("shape", "体态调整", "8"),
    
    BABY("baby", "孕产恢复", "9"),
    
    BODY("body", "形体雕刻", "10"),
    
    HANG("hang", "悬挂式训练", "3"),
    
    LING("ling", "铃壶专项", "5"),
    
    VIPR("vipr", "普拉提", "7");
    
    private String alias;
    
    private String desc;
    
    private String code;
    
    private SpecialTags(String alias, String desc, String code) {
        this.alias = alias;
        this.desc = desc;
        this.code = code;
    }
    
    /**
     * 
     * @param alias
     * @return
     */
    public static SpecialTags aliasOf(String alias) {
        for (SpecialTags courseType : SpecialTags.values()) {
            if (courseType.getAlias().equalsIgnoreCase(alias)) {
                return courseType;
            }
        }
        
        return null;
    }
    
    public String getAlias() {
        return alias;
    }
    
    public String getDesc() {
        return desc;
    }
    
    public String getCode() {
        return code;
    }
}
